<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>maingrade/add.jsp</title>
</head>
<body>
<form action="save" method="post">
	<input name="id" type="hidden" value="${model.id }">
	<%-- <input name="student.id" type="hidden" value="${model.student.id }"> --%>
	姓名<select name="student.id">
		<c:forEach items="${students }" var="sts">
			<option value="${sts.id }">${sts.name }</option>
		</c:forEach>	
	</select><br>
	课程<select name="mainCourse.id">
				<c:forEach items="${mainCourses }" var="mcs">
					<option value="${mcs.id }">${mcs.name }</option>
				</c:forEach>
	</select><br>
	成绩<input type="text" name="grade" value="${model.grade }"><br>
	<button type="submit">确定</button>
</form>
</body>
</html>